import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-05-07
 * Time: 12:50
 */
public class Main {
    public static void transform(int []arr){
        for (int i = 0; i < arr.length; i++) {
            arr[i] *= 2;
        }
    }

    public static void main(String[] args) {
        int []arr = {1,2,3};
        transform(arr);
        String str = Arrays.toString(arr);
        System.out.println(str);
    }
}
